<?php
	include_once 'isLogin.php';
	
	$admin = $commonc->getInfo("admin",$_COOKIE['admin_id']);
	$group_id=$admin['group_id'];
	$group=$commonc->getInfo('admin_group',$group_id);
	$admin['group_name']=$group['group_name'];
	
	$head = array(
				array('label'=>'首页','left'=>'left.php','url'=>'right.php'),
				array('label'=>'网站设置','left'=>'leftneirong.php','url'=>'set.php'),
				array(),
				array('label'=>'资讯管理','left'=>'leftinfo.php','url'=>'info_list.php'),
				array('label'=>'子时服务','left'=>'leftservice.php','url'=>'service_list.php'),
				array('label'=>'会员管理','left'=>'leftuser.php','url'=>'user_list.php'),

			);
	//超级管理员权限
	if($admin['group_id']=='1'){
		$head[2]=array('label'=>'管理员','left'=>'leftadmin.php','url'=>'admin_list.php');
	}else{
		unset($head[2]);
	}
	$smarty->assign("head",$head);
	
	$label_width = count($head)*70;
	$smarty->assign("label_width",$label_width);

	$smarty->assign('user',$admin);
	$smarty->display("head.html");
?>